<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>对象概念</title>
	</head>
	<body>
		<script type="text/javascript">
			/**
			 * 对象的创建
			 * 1.var o1=new Object();
			 * 2.var o2={};
			 */
			var o1=new Object();
			o1.nane="孙悟空";
			o1.age=500;
			o1.change=function () {
				alert("我会七十二变")
			}
			var o2={name:"猪八戒",age:400};
			o2.addr="昆明";
			
			console.log(o1.nane,o2.age);
			o1.change();
		</script>
		
	</body>
</html>
